﻿using System;
using System.Collections.Generic;
using Sustainalytics.Entities;

namespace Sustainalytics.ReportGenerator.BL
{
    public class GenerationResult
    {
        public ReportType ReportType { get; set; }
        public ReportGeneratorType ReportGeneratorType { get; set; }
        public byte[] PdfDocument { get; set; }
        public TimeSpan GenerationTime { get; set; }
        public List<OutlinePosition> OutlinePositions { get; set; }
        public List<PageElementPosition> PageElementPositions { get; set; }
    }

    public class OutlinePosition
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public int PageNumber { get; set; }
        public float VerticalPosition { get; set; }
        public List<OutlinePosition> ChildOutlinePositions { get; set; }

    }

    public class PageElementPosition
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public int PageNumber { get; set; }
        public float HorizontalPosition { get; set; }
        public float VerticalPosition { get; set; }
        public float Height { get; set; }
        public float Width { get; set; }
    }
}
